package org.rasterfun

/**
 * Represents a raster of integers (or compressed rgba pixels).
 * 
 * @author Hans Haggstrom
 */
trait IntRaster {
  
  def sizeX: Int
  def sizeY: Int

  /**
   * Returns a reference to the data.  Can be modified, but updateDone should be called after modification is done.
   */
  def rasterData: Array[Int]

  /**
   * Should be called after writing the rasterData has finished.
   */
  def updateDone()

}

